export const Millisecond = 1
export const Second = Millisecond * 1000
export const Minute = Second * 60
export const Hour = Minute * 60
export const Day = Hour * 24
export const Week = Day * 7

// service time limits
export enum TimeLimits {
  // new websocket connection should handshake with server in this time
  WebSocketHandshakeTimeout = 15 * Second,
  // how long should we cache discord user data
  DiscordUserCache = 15 * Minute,
  // how long does up stays valid
  UpTTL = 2 * Week,
  // how long does the user has to wait between granting ups to one resource
  UpTimeout = 6 * Hour,
  // how long cache service statistics should be kept
  StatsCacheTTL = 2 * Minute,
  BoostLifetime = 30 * Day,
}
